<template>
	<view>
		<view class="">
			<shopList :list="shop_list" ziduan='shop_id' :islog="islog" :log="log" @on_del="on_del" :type="1">
			</shopList>
		</view>

	</view>
</template>

<script>
	import shopList from "./list1.vue";
	export default {
		components: {
			shopList
		},
		data() {
			return {
				shop_list: [],
				islog: true,
				log: '加载中',
				page: 1
			}
		},
		onLoad() {
			var pages = getCurrentPages()
			let currentRoute = pages[pages.length - 1].route;
			this.api_path = currentRoute.match(/pages\/(\S*)\//)[1];
			this.init();
		},
		methods: {
			on_del(index) {
				var id = this.shop_list[index]['id'];

				var that = this;
			 
			},
			init() {
				var that = this;

				let requestParams = {};
				this.Http.post('/plugin.php/banmichaoqiangbizhi/api/index/my_download',requestParams).then(ret => {

					if (ret.status == 200) {
						that.shop_list = ret.data.list.data;
					}
					setTimeout(() => {
						that.isinit = false;
						that.islog = false;
					}, 100)
				})


			}
		}
	}
</script>

<style>
	page {
		background-color: #fff;
	}
</style>